package com.dubito.composenote

import com.dubito.composenote.model.Note

/**
 * author: LiLiang
 * createTime: 2022/10/6-11:25
 * remark:
 **/
object Constants {

    const val TABLE_NAME = "notes"
    const val DATABASE_NAME = "notes_database"
    const val NOTE_CREATE = "note_create"
    const val NOTE_Edit = "noteEdit/{noteId}"
    const val NOTE_LIST = "note_list"
    const val NOTE_DETAIL = "noteDetail/{noteId}"
    const val NOTE_ID_ARGUMENT = "noteId"




    val noteDetailPlaceHolder = Note(id = 0, title = "找不到内容", note = "找不到内容")

    fun noteDetailNavigation(noteId: Int) = "noteDetail/$noteId"
    fun noteEditNavigation(noteId: Int) = "noteEdit/$noteId"
}